<!DOCTYPE html>
<html lang="en">
    <head>
        {include file="public/header"}
        <title>{$chapter.chat_title}</title>
    </head>
    <body>
        <div class="col-lg-12 col-sm-12">
            <form class="form" action="update" id="form">
                <input class="form-control" type="hidden" name="id" value="{$chapter.chat_id}">
                <div class="col-lg-4">
                    <div class="form-group">
                        <label>书本选择</label>
                        <select class="form-control" name="bkid">
                            {volist name="book" id="b"}
                            {php} if($b['bk_id'] == $chapter['bk_id']){ {/php}
                            <option value="{$b.bk_id}" {php} echo "selected" {/php}>{$b.bk_name}</option>
                            {php} } else { {/php}
                            <option value="{$b.bk_id}">{$b.bk_name}</option>
                            {php} } {/php}
                            {/volist}
                        </select>
                    </div>
                </div>
                <div class="col-lg-6">
                    <div class="form-group">
                        <label>标题</label>
                        <input class="form-control" type="text" name="title" value="{$chapter.chat_title}">
                    </div>
                </div>
                <div class="col-lg-2">
                    
                    <div class="form-group">
                        <label>排序</label>
                        <input class="form-control" type="text" name="sort" value="{$chapter.chat_sort}">
                    </div>
                </div>
                <div class="col-lg-12">
                    <div class="form-group">
                        <label>详细内容</label>
                        <script id="editor" name="content" type="text/plain">{$chapter.chat_content}</script>                                    
                    </div>
                </div>
                <div class="col-lg-12">
                    <div class="form-group">
                        <label>练习题目</label>
                        <script id="editor2" type="text/plain" name="exercise" style="height:300px;">{$chapter.chat_exercise}</script>                                    
                    </div>
                </div>                        
                <div class="col-lg-12">
                    <a href="javascript:;" class="btn btn-primary" onclick="edu.submit('form',this)">确定</a>
                </div>
                <div class="clearfix"></div>
            </form>
        </div>
        {include file="public/plane" /}
        {include file="public/javascript" /}
        {include file="public/jqueryform" /}
        <script type="text/javascript" src="/admin/vendor/ue/ueditor.config.js"></script>
        
        <script type="text/javascript" src="/admin/vendor/ue/ueditor.all.js"></script>        
        <script type="text/javascript" src="/admin/script/chapter/edit.js"></script>
    </body>
</html>
